//
//  WCNewListCell.m
//  WC
//
//  Created by wsj2015 on 16/2/25.
//  Copyright © 2016年 ShanghaiCize Trade And Business Co., Ltd. All rights reserved.
//

#import "WCNewListCell.h"
#import "WCImageView +setImage.h"
@implementation WCNewListCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (void)setModel:(WCNewsListModel *)model{
    _model = model;
    self.newsTitle.text = model.title;
//    self.relaseTimeLabel.text =[NSString timeToString:[model.createTime longLongValue]];
//    self.hotsLabel.text =[NSString stringWithFormat:@"%@",model.ctr];
//    self.profileLabel.text =model.profile;
//    self.flagLabel.text =model.flags;
    self.newsContent.text = model.profile;
    self.commentsNum.text = [NSString stringWithFormat:@"%@",model.ctr];
     self.hotNumber.text = [NSString stringWithFormat:@"%@",model.praise];
    [self.iconView wsjSetImageWithUrl:model.titleImageId withPlaceImageName:nil];

}
@end
